package com.robot.member.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.robot.member.pojo.CashWithdrawal;

/**
 * withdrawal数据访问接口
 *
 * @author
 */
public interface CashWithdrawalDao extends JpaRepository<CashWithdrawal, String>, JpaSpecificationExecutor<CashWithdrawal> {
    /**
     * 查询会员名下的所有提现记录
     *
     * @param memberId
     * @param pageable
     * @return
     */
    public Page<CashWithdrawal> findAllByMemberIdOrderByCreatedAtDesc(String memberId, Pageable pageable);
}
